<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;


/**
 * App\Comment
 *
 * @property int $id
 * @property int $user_id 用户id
 * @property string|null $content 评论内容
 * @property int $unit_id 单位id
 * @property int $news_id 资讯id
 * @property int $expert_id 专家id
 * @property int $is_official 是否官方点评 0：不是 1：是
 * @property int|null $to_comment_id 回复的评论id
 * @property string|null $type 类型 unit：单位评论 news：资讯评论 expert：专家评论
 * @property int $status 审核状态 0：待审核 1：通过 2：拒绝
 * @property string|null $deleted_at
 * @property \Carbon\Carbon|null $created_at
 * @property \Carbon\Carbon|null $updated_at
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Query\Builder|\App\Comment onlyTrashed()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereExpertId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereIsOfficial($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereNewsId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereToCommentId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereUnitId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereUserId($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Comment withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Comment withoutTrashed()
 * @mixin \Eloquent
 * @property string|null $ip ip
 * @property int $is_top 是否置顶
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereIp($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereIsTop($value)
 * @property int $demand_id 需求id
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereDemandId($value)
 * @property int $to_user_id 回复的用户
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Comment whereToUserId($value)
 */
class Comment extends Model
{
    protected $table = "comment";
    use SoftDeletes;
}
